<extend name="Public/base" />

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title cf">
        <h2>邀约详情</h2>
    </div>
    <!-- 标签页导航 -->
    <div class="tab-wrap">
        <div class="tab-content">
            <!-- 表单 -->
            <form id="form" action="" method="post" class="form-horizontal">
                <input type="hidden" name="id" value="{$info.id}" readonly>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">邀约发起人</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="nickname" value="{$info.nickname}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">发起人联系方式</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="username" value="{$info.username}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">需求</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="demand" value="{$info.demand}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">需求人数</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="number" value="{$info.number}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">有效期限</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="eff_time" value="{$info.eff_time}" readonly>
                    </div>
                </div>
                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">截止日期</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="end_date" value="{:date('Y-m-d',$info['end_date'])}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">详情描述</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="description" value="{$info.description}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">邀约地点</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="place" value="{$info.place}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">愿付酬金</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="money" value="{$info.money}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">邀约手续费</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="fee" value="{$info.fee}" readonly>
                    </div>
                </div>
                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">发布时间</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="up_time" value="{:date('Y-m-d',$info['up_time'])}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">应邀人数</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="ying_num" value="{$info.ying_num}" readonly>
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label"><span class="check-tips">同意邀约人数</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="ying_ty" value="{$info.ying_ty}" readonly>
                    </div>
                </div>
                <if condition="$info.ying_num gt 0">
                <div class="form-item cf">
                    <button class="btn submit-btn ajax-post hidden" id="ying" type="button" onClick="window.open('{:U('ying')}?id={$info.id}')" >查看应邀详情</button>
                </div>
                </if>

            <div class="form-item cf">

                <a class="btn btn-return" id="back"onClick="location.href='{:U('invitelist')}'" >返 回</a>
            </div>
            </form>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        $('#back').click(function(){
           // window.location.href='./Admin/Invite/invitelist/';
    });
        $('#ying').click(function(){

        });
        $(function(){
            $('.time').datetimepicker({
                format: 'yyyy-mm-dd hh:ii',
                language:"zh-CN",
                minView:2,
                autoclose:true
            });
            showTab();

        });
        //导航高亮
        highlight_subnav('{:U('Invite/invitelist')}');
    </script>
</block>
